package com.ymttest.database.sqlwapper.anlihui;

import java.util.List;

import com.ymt.database.SqlManager;

public class YmtAnlihuiRebateConfigWrapper {
	SqlManager manager;

    public YmtAnlihuiRebateConfigWrapper() {
        manager = new SqlManager("intpro");
    }
    
    @SuppressWarnings("unchecked")
	public YmtAnlihuiRebateConfigWrapper selectBySecondCategoryId(Integer id) {
    	
    	YmtAnlihuiRebateConfigWrapper ymtAnlihuiRebateConfig = new YmtAnlihuiRebateConfigWrapper();
    	List<YmtAnlihuiRebateConfigWrapper> result = manager
                .getSelectResults(
                        "com.ymttest.database.mapping.anlihui.YmtAnlihuiRebateConfigMapper.selectBySecondCategoryId",
                        id);
        manager.commit();
        
		if (result.size() > 0) {
			ymtAnlihuiRebateConfig = result.get(0);
		}
		
        return ymtAnlihuiRebateConfig;
    }
    
    public static void main(String[] args) {
    	
    	
    }
}
